<div class="form">

	<?php
	$properties = array(
		'id'=>'cardreq-form',
		'htmlOptions'=>array('enctype'=>'multipart/form-data'),
		'enableAjaxValidation'=>false
	);
	$form = $this->beginWidget('CActiveForm', $properties);
	?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php
		$htmlOptions = array('rows'=>6, 'cols'=>50);
		echo $form->labelEx($model, 'message');
		echo $form->textArea($model, 'message', $htmlOptions);
		echo $form->error($model, 'message');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'memberCodes');
		$htmlOptions = array('rows'=>6, 'cols'=>50, 'class'=>'monospace');
		echo $form->textArea($model, 'memberCodes', $htmlOptions);
		echo $form->error($model, 'memberCodes');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'file');
		echo $form->fileField($model, 'file');
		echo $form->error($model, 'file');
		?>
	</div>

	<div class="row buttons">
		<?php
		echo CHtml::submitButton('Simpan', array('name'=>'save'));
		$label = 'Simpan Dan Lihat';
		echo CHtml::submitButton($label, array('name'=>'draft'));
		echo CHtml::submitButton('Kirim', array('name'=>'sent'));
		?>
	</div>

	<?php $this->endWidget(); ?>

</div><!-- form -->